home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr28 / perf.zip / PERFOR.TXT
Text File  |  1993-03-03  |  20KB  |  356 lines

  1. TECHNICAL BULLETIN                                                        PERFORM
  2. LANtastic Performance Issues                                         
  3.  
  4.  
  5. The following information is based on in-house testing of LANtastic.  If you are
  6. not a registered LANtastic owner, your questions should be directed to our
  7. technical sales staff at (602) 293-6363.  Any questions or comments on this
  8. bulletin may be forwarded by FAX (602) 293-8065 or mailed to: Artisoft Inc., 691
  9. East River Road, Tucson, AZ., 85704, ATTN: Technical Support.
  10.  
  11. GENERAL HINTS AND TIPS 
  12. INCREASING PERFORMANCE OF LANTASTIC NETWORKS
  13.  
  14.  
  15. "What can I do to speed up my LAN?" A very common question, and one to which
  16. there is unfortunately, no cut and dried answer. Network performance depends on
  17. many things.  Getting the best performance out of your particular installation
  18. may require a little experimentation. This bulletin presents a discussion of some
  19. of the major factors that affect performance, and a few general suggestions for
  20. improvement.
  21.  
  22. Choosing your Hardware
  23.  
  24. When you're choosing the hardware for your LAN, keep in mind that the things that
  25. make a fast computer are also the basic ingredients of a fast network. A fast
  26. processor, fast memory and a fast disk drive all help to provide better network
  27. speed. For best performance, you should choose fast, well balanced components.
  28. The two biggest factors are CPU speed and hard disk speed. 
  29.  
  30. It's fairly easy to find fast computers and fast disk drives out there in the
  31. marketplace, but for the best results make sure that the components you buy are
  32. well matched. If you install a high performance disk drive in a 4.77 Mhz XT, your
  33. network will be slow because the computer's CPU won't be able to move data around
  34. fast enough to keep up with the drive, let alone the rest of the network.
  35. Similarly, if you install an old 20mb MFM drive in your 386-33, the fast
  36. processor will spend a lot of time waiting around for the old drive, as will the
  37. rest of your network users.
  38.  
  39. The transmission speed of the adapter cards you choose will also make a
  40. difference. With reasonably fast machines, upgrading from a LANtastic 2mbps
  41. adapter to a new Artisoft Ethernet adapter can approximately double the
  42. throughput of the network. Again, balance is vital. If you have a slow processor,
  43. switching to Ethernet may not make much difference -- the 2mbps adapter has a
  44. coprocessor that handles all the low level NetBIOS processing, whereas the
  45. Ethernet adapter relies on the computer to handle everything.  
  46.  
  47. Optimizing Software Performance
  48.  
  49. Now that we've dealt with hardware selection; let's see what can be done to
  50. improve the performance of existing installations. First, let's tie down what we
  51. mean by the "speed" of the LAN. There are really two things at issue here, the
  52. physical transmission speed of the hardware, and the effective throughput, or how
  53. fast data gets from one place to another on the LAN. Assuming for now that the
  54. hardware is fixed and immutable, here are some suggestions for getting the best
  55. throughput with your particular application. 
  56.  
  57. Optimizing Network Configuration
  58.  
  59. There are two major configurations of the network that will greatly benefit
  60. overall network performance.  
  61.  
  62. The first is simply using LANtastic's ability to have more than one server on the
  63. network.  Splitting up network tasks so that different programs are run on
  64. separate servers will decrease the load on each individual server, this will
  65. improve the servers response (and on a non dedicated server improve the
  66. performance of the computer for the person sitting at the keyboard).
  67.  
  68. The next is setting up a dedicated server (while LANtastic is a Peer to Peer
  69. network - Artisoft considers a dedicated server to be only a special case of peer
  70. to peer networking). A dedicated server can be specifically tuned to optimize the
  71. performance of the Network portion of the computer at the detriment of the
  72. Workstation (keyboard) portion of the computer.
  73.  
  74. This is done by using the RUN_BURST command line switch (on AILANBIO with
  75. versions of LANtastic prior to 4.1, on both AILANBIO and SERVER with version 4.1
  76. and greater).
  77.  
  78. This switch controls the amount of time that the program (either netbios or
  79. server) devotes to processing network tasks.  The higher the value the longer
  80. amount of time allocated.  Since both REDIR and SERVER  release control if there
  81. are no tasks waiting neither switch will conflict with the other.  Setting these
  82. switches to the max 254 will give optimum performance for a dedicated server.
  83.  
  84. In a dedicated server, memory no longer is a major consideration. Large sizes for
  85. the servers caching and buffers should be experimented with.  (See server
  86. buffering below.)
  87.  
  88. Another command that is useful for a dedicated server is the ALONE command
  89. included with v4.0 and higher.  When the server program is used to access a
  90. resource on the server, it first swaps out all the DOS stacks and control memory. 
  91. It does this so a foreground task can coexist with the server running in the
  92. background. On a dedicated server Alone tells the server that there will NEVER be
  93. a program running on this machine in the foreground using DOS and so server saves
  94. time by NOT swapping into and out of DOS.  This means that you cannot run a TSR
  95. (Terminate and Stay Resident program)  on this dedicated server that will use dos
  96. calls.
  97.  
  98. General Improvements
  99.  
  100. FASTOPEN
  101.  
  102. Running the DOS FASTOPEN command will improve network speed considerably(except
  103. with MSDOS 5.0 because of a reported problem in this version's FASTOPEN). 
  104. FASTOPEN stores the location on the hard disk of each previously opened file to
  105. make repeated access to this file much faster.  
  106.  
  107.  
  108.  
  109. SEEK CACHE
  110.  
  111. LANtastic 4.1 contains a new cache built into the server program, SEEK CACHE. 
  112. SEEK CACHE caches each users position within open random access files. Typically
  113. a seek cache will significantly affect performance of random access file
  114. operations if:
  115.  
  116.      1> Files being accessed are relatively large.
  117.      2> The files are kept open and accessed frequently.
  118.  
  119. The optimum size for the  SEEK CACHE is the SIZE of database files/cluster size
  120. (typically 4096)* 32 + the Number of files *32.
  121.  
  122.  
  123. RESOURCE CACHE
  124.  
  125. When a user on LANtastic accesses a resource, LANtastic has to check the
  126. resources Access Control List (ACL) to see what permissions the user has.  This
  127. requires loading the resource information from the hard disk and checking it.  To
  128. improve performance with LANtastic NOS 4.1 resource caching can be enabled on a
  129. server.  This means that as each resource (disk or printer) is accessed it's
  130. access information  is stored in a permanent cache in the server.  There should
  131. be one cache specified for each commonly used resource. If a server has several
  132. resources, but only a few are normally accessed, the cache number can be set to
  133. the number of commonly used resources +1.  The caches are flushed and used on a
  134. least frequently accessed algorithm so system performance will be only slightly
  135. affected.
  136.  
  137.  
  138. INDIRECT FILE ACL's
  139.  
  140. Indirect files will greatly effect network performance, with LANtastic NOS 3.0x
  141. eliminate the I from each disk resources Access Control List.  With NOS 4.xx the
  142. I ACL has already been eliminated. With the I ACL in place each time a file is
  143. opened the NOS checks to see if the file is an indirect file.  If you are not
  144. using indirect files eliminating this ACL will save time when a file is opened.
  145.  
  146. SERVER AUDITING
  147.  
  148. Indirectly, server auditing can also have a great effect on network performance. 
  149. If auditing is enabled and the audit files are not cleared on a regular basis
  150. this file can grow very large.  This by itself is not a problem; but since
  151. auditing requires that an entry be made to this file every time an audited
  152. function is used, the time spent seeking to the end of this file will increase as
  153. the file size increases.
  154.  
  155. SEND SERVER ID
  156.  
  157. You can reduce the load on heavily used networks by disabling the Send Server ID
  158. selection in NET_MGR, Server Startup Parameters. With this selection enabled the
  159. server sends out a message once every retry period (55ms x retry_period setting),
  160. this message is just that the machine is a server and available.  If your system
  161. is using batch files this message is not needed.  If the server name is known, it
  162. can be logged into even if the server is NOT sending out it's ID.
  163.  
  164. DISK CACHING
  165.  
  166. Adding a disk cache to the server also helps performance in almost all
  167. situations. Disk caching programs work by storing frequently requested
  168. information in memory. This reduces the number of physical accesses to the disk.
  169. Since accessing memory is almost always faster than accessing the disk drive,
  170. caching can greatly improve the disk performance of your network. 
  171.  
  172. The LANtastic disk caching program; LANcache, is specifically designed to work
  173. with LANtastic networks. It caches disk writes as well as disk reads and when it
  174. actually does have to write to the disk, it does so as a background operation so
  175. that CPU operations can continue. 
  176.  
  177. Choosing the Best Buffer Settings
  178.  
  179. Beyond these general changes, getting the best performance out of your specific
  180. application is a matter of fine tuning several parameters. LANtastic has four
  181. sets of buffers, each of which can affect performance in specific situations. 
  182.  
  183. REDIR Buffers
  184.  
  185. It takes the network about the same amount of time to send 1 byte of data as it
  186. does to send 256 bytes of data. Every packet sent over the network takes time to
  187. construct and time to process. Given this, it makes sense to include as much data
  188. as possible in each packet -- it keeps the network overhead impact to a minimum
  189. and reduces network traffic. The REDIR program accomplishes this by buffering
  190. network requests at each machine. Here's an example of REDIR's buffering in
  191. action: 
  192.  
  193.      You are creating a file of customer names on the server and adding data to
  194.      it. You type in the names one at a time and your program writes the names to
  195.      the data file one at a time. Rather than issue a network send for each name,
  196.      the data gets stored in the local REDIR buffer until you close the file or
  197.      fill the buffer. At that point, REDIR issues a single request to send the
  198.      entire buffer.
  199.  
  200. REDIR buffers read requests similarly. If you request an amount of data smaller
  201. than the REDIR buffer, REDIR requests one buffer full of data from the server.
  202. Then, if you request the next sequential piece of data, REDIR can supply it to
  203. your program without even making a network request.
  204.  
  205.  
  206. REDIR buffers are only used for small (small means smaller than the REDIR buffer
  207. size) sequential reads or writes to files that are NOT opened in the sharable
  208. mode. If you read or write blocks of data larger than the REDIR buffer, the
  209. network software bypasses it and moves data directly from the applications buffer
  210. directly to the NetBIOS. The ideal REDIR buffer size then, would be about the
  211. average size of the packets that your network typically sends and receives. You
  212. can set the size of the REDIR buffers with the SIZE= command line switch.  
  213.  
  214. The number of REDIR buffers can also affect the performance of many applications.
  215. If you allocate multiple REDIR buffers using the BUFFERS= command line switch,
  216. the network tries to associate each file opened in the non sharable mode. Network
  217. printers are handled just like other files. Ideally, you should have a buffer
  218. available for each open non sharable network file. If you have more files than
  219. available buffers, the network flushes the least recently used buffer and assigns
  220. into the new request.
  221.  
  222. WordPerfect is a good example of a program that is affected by the number of
  223. buffers. If you have only one buffer allocated, printing can be very slow because
  224. WP has to read the document and send data to the printer with the same buffer.
  225. The buffer gets continually filled and flushed, back and forth, with printer data
  226. and document data. In this situation, allocating just one more buffer allows WP
  227. to use one buffer for document reading and another for printing. 
  228.  
  229. Server Buffers and Tasks
  230.  
  231. A server buffer is at the other end of a REDIR buffer. When, for example, a
  232. workstation makes a read request, the server reads one server buffer full of
  233. data, beginning with the information requested. If the workstation then asks for
  234. the next piece of the same information, the server can get it from the buffer
  235. instead of physically reading the hard disk.
  236.  
  237. The server buffer size can be changed from the Server Startup Parameters option
  238. in the NET_MGR program. Be aware that bigger isn't necessarily better -- as with
  239. REDIR buffers, the optimal size is somewhere around the average size of the
  240. packets that will be transferred across the network by your application. One
  241. server buffer of whatever size you select is allocated for each network task.
  242. Large network buffers will greatly effect the speed when moving large amounts of
  243. sequential data across the network. Loading programs, using a word processor, and
  244. using a cad program are all examples of the type of applications and use that can
  245. benefit from large server buffers.
  246.  
  247. When a workstation submits a request to a server, the server will work on the
  248. request until the task is finished, or the timeslice allocated to the server is
  249. over. If the server is set up with only one network task, instead of switching,
  250. the server will run the request to completion and other incoming tasks will be
  251. queued up behind it. If server tasks are higher, the server can process several
  252. tasks in one active period. One task can actually be buffered in the server while
  253. another in being processed. If you're a using network adapter with a coprocessor, like our Enhanced 2mbps
  254. adapter, increasing the number of network tasks (with the Server Startup
  255. Parameters option of NET_MGR) will give you a big performance boost. While the
  256. coprocessor is busy working on one task, the server's CPU can work on another.
  257. This advantage is multiplied if you have more than one coprocessor equipped
  258. adapter in a server. In fact, with three or four 2mbps boards in a dedicated
  259. server and a corresponding number of network tasks, you can achieve a continuous
  260. throughput comparable to that of an Ethernet network with an equal number of
  261. stations. As a plus, you've got built-in redundancy -- the workstations connected
  262. to each adapter will function as separate networks. If one segment fails because
  263. of cabling or adapter problems, the rest will still operate.
  264.  
  265. SERVER REQUEST SIZE
  266.  
  267. With NOS 4.xx a new parameter has been added to change the size of the server
  268. request buffer. The REQUEST_SIZE= is set to 14 bytes by default. If a request
  269. from a workstation is smaller than this buffer, the server will be able to act
  270. directly on this request. If the request is larger than the request buffer, it
  271. must be buffered by the SERVERS initial send buffer, and system overhead is
  272. increased.  The value of 14 is chosen specifically for LANtastic.  This 14 byte
  273. buffer is large enough to tell the server what type of operation and how many
  274. bytes the total operation will take.
  275.  
  276. There are some natural breaks in the size of this buffer.  The default will
  277. handle only the very smallest network tasks, lock, unlock, closing a file, etc. 
  278. At 60-70 bytes most network activity except reads and writes are processed
  279. without additional buffering, and from 600-2048 small reads and writes are
  280. processed without additional server buffering.  This parameter should NOT be set
  281. larger than the AILANBIO Initial Send Buffer. One request buffer is allocated for
  282. each user in MAX USERS (LOGINS= command line switch). 
  283.  
  284. LOCK HOLD TIME
  285.  
  286. Artisoft has discovered that setting the lock hold time higher than 0 with
  287. LANtastic v4.1 can have an adverse effect on the time required to open a file. 
  288. This parameter should be used cautiously. If your use of the network entails
  289. opening and closing a large number of files, then this parameter should be set to
  290. a low value.  If your use of the network involved accessing a large common data
  291. file, then increasing the value of this parameter will help performance.
  292.  
  293. NetBIOS and Adapter Card Memory
  294.  
  295. With LANtastic v4.xx ethernet cards, you can increase the netbios packet size. 
  296. This can have an effect on the system speed when loading programs and performing
  297. large sequential reads and writes.  Increasing the PACKET_SIZE beyond 1500 bytes
  298. moves the network out of IEEE802.3 standards and may cause problems if you are
  299. using third party IEEE devices like routers or bridges.
  300.  
  301. With our AE-2 card, there's an easy way to get a performance boost on heavily
  302. loaded networks. You can upgrade the adapter from its default 16K configuration
  303. to a full 64K of RAM. It is fairly easy to tell when this upgrade is needed. 
  304. Start the network; if after 10 minutes of use lancheck shows network resource
  305. exhuasts, increasing the memory on the adapter will help network performance.
  306.  
  307. Effects of Changing Buffer Sizes
  308.  
  309. Keep in mind that on systems with only two or three stations, changing the buffer
  310. configuration may not have any measurable impact on speed. In any case,
  311. increasing the size and number of REDIR and SERVER buffers uses memory and can
  312. slow down programs running on the server. If your application performance is
  313. critical, consider setting up a dedicated server for your most used application
  314. programs and printers.
  315.  
  316. Running Applications on the Server
  317.  
  318. To get the best performance out of your network when you run applications on a
  319. server, you should always use the server as though it was a remote workstation:
  320. log in and access the application through network drives. Using the server
  321. locally, without logging in, places you in contention with the rest of the users
  322. and network performance can suffer. If you log in, the server will schedule you
  323. along with the rest of the network users and everyone will get good performance. 
  324. This does NOT mean that you should issue NET USE commands that use a drive over
  325. itself, IE NET USE C: \\SERVER\C-DRIVE.  This can cause problems.  It is better
  326. to create a common network redirection ie NET USE G: \\SERVER\C-DRIVE and have
  327. ALL workstations (even the server) access the program off of G:.
  328.  
  329. Increasing Print Speed
  330.  
  331. One of the slowest things about printing to a network printer is spooling to the
  332. hard disk. With LANtastic NOS 3.0 and above you can easily increase the print
  333. spooling speed by spooling to a RAM disk. To change the spooler's location, use
  334. the Change Spool Location option of NET_MGR's Queue Maintenance function.  You
  335. must be sure that the ramdisk is large enough to hold both the largest file
  336. printed and all print requests that may be submitted at one time.  The spooler
  337. will exit with an error if there is not enough space available on this drive.
  338.  
  339. PRINTER BUFFERS
  340.  
  341. As with REDIR and server buffers, increasing the size of your printer buffers can
  342. improve printing speed. If your server has more than one printer attached,
  343. increasing the number of printer tasks will allow it to print to more than one
  344. printer simultaneously. Artisoft has determined through testing that with some
  345. applications running on the server optimum printing is achieved with printer
  346. tasks set to 1 no matter how many printers are attached to the server. Notably
  347. these applications are Windows 3.x, Clipper 5.0, and Lotus products. If you
  348. notice slow printing when running one of these programs on a print server, you
  349. can increase print speed by setting printer tasks to 1 and setting cps in the
  350. printer resource to 9600.
  351.  
  352. ARTISOFT, Inc. makes no warranties as to the completeness or accuracy of this
  353. document.  LANtastic is a registered trademark of ARTISOFT, Inc.  Brand names and
  354. product names are trademarks or registered trademarks of their respective
  355. companies. Network Performance Issues
  356.